projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b05f3f5
)
imcontextsimple: Fix a possible problem
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 24 May 2021 22:52:14 +0000
(18:52 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 24 May 2021 22:53:14 +0000
(18:53 -0400)
We were forgetting to handle the compose sequence
case in reset().
gtk/gtkimcontextsimple.c
patch
|
blob
|
history
diff --git
a/gtk/gtkimcontextsimple.c
b/gtk/gtkimcontextsimple.c
index 761aa66efd4b34a0c9ed58417247dc0acbde11e7..0338b3f187766d39ec6d6fa6879df6653a878a6e 100644
(file)
--- a/
gtk/gtkimcontextsimple.c
+++ b/
gtk/gtkimcontextsimple.c
@@
-1077,9
+1077,12
@@
gtk_im_context_simple_reset (GtkIMContext *context)
priv->compose_buffer[0] = 0;
- if (priv->tentative_match->len > 0 || priv->in_hex_sequence)
+ if (priv->tentative_match->len > 0 ||
+ priv->in_hex_sequence ||
+ priv->in_compose_sequence)
{
priv->in_hex_sequence = FALSE;
+ priv->in_compose_sequence = FALSE;
g_string_set_size (priv->tentative_match, 0);
priv->tentative_match_len = 0;
g_signal_emit_by_name (context_simple, "preedit-changed");